{% extends "base_docs" %}

{% block title %}Documentation | {{ object.titre }}{% endblock %}

{% block content %}
{{ object.get_content }}

{% load comments %}
{% get_free_comment_list for docs.documents object.id as comment_list %}

<div id="content-secondary">
<h2 id="comments">Commentaires</h2>

{% for comment in comment_list %}
<div class="comment" id="c{{ comment.id }}">
	<h3>{{ comment.person_name }} <span class="small quiet">{{ comment.submit_date|date:"j F Y" }} à {{ comment.submit_date|date:"P" }}</span></h3>
    {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
</div>
{% endfor %}

<h2>Poster un commentaire</h2>

<p class="small quiet"><strong>Note :</strong> les commentaires seront lus périodiquement, intégrés
à la documentation puis supprimés.</p>

{% free_comment_form for docs.documents object.id %}
</div>
{% endblock %}

{% block content-related %}<h2>Sommaire</h2>{{ object.get_toc }}{% endblock %}